package com.todo.strategy.pipeline.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.strategy.online.service.api.pipeline.request.InsertMemoTemplateRequest;
import com.todo.strategy.online.service.api.pipeline.request.RemoteMemoTemplateRequest;
import com.todo.strategy.online.service.api.pipeline.request.UpdateMemoTemplateRequest;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author azhebuxing
 * @date 2025/3/1 15:10
 * @description
 */
@FeignClient(name = "todoStrategyOnlineService", url = "http://localhost:18004")
public interface MemoPipelineRemoteService {

    @Operation(summary = "插入模板")
    @PostMapping("/api/pipeline/memo/insertMemoTemplate")
    BizResponse<Boolean> insertMemoTemplate(@RequestBody InsertMemoTemplateRequest request);

    @Operation(summary = "新增模板")
    @PostMapping("/api/pipeline/memo/updateMemoTemplate")
    BizResponse<Boolean> updateMemoTemplate(@RequestBody UpdateMemoTemplateRequest request);

    @Operation(summary = "删除模板")
    @PostMapping("/api/pipeline/memo/remoteMemoTemplate")
    BizResponse<Boolean> remoteMemoTemplate(@RequestBody RemoteMemoTemplateRequest request);
}
